package com.mate.cloud.user.service;

import com.alibaba.csp.sentinel.annotation.SentinelResource;
import com.mate.cloud.handler.SentinelResourceFlowExceptionHandler;
import org.springframework.stereotype.Service;

/**
 * @author cong zhi
 * @description
 * @email 448341911@qq.com
 * @date $ $
 * @version: v1.0
 */
@Service
public class OrderService {


    @SentinelResource(value = "orderQuery",blockHandler = "handlerBlock",blockHandlerClass = SentinelResourceFlowExceptionHandler.class)
    public String query() {
        System.out.println("query#Order....");
        return "query#Order....";
    }
}
